package ch9;

public class Goods {
	private String name, from, to;
	private double money;

	public Goods(String name, String from, String to, double money) {
		super();
		this.name = name;
		this.from = from;
		this.to = to;
		this.money = money;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	@Override
	public String toString() {
		return "Goods [name=" + name + ", from=" + from + ", to=" + to
				+ ", money=" + money + "]";
	}
}
